<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<form:form commandName="SysDeptRoomFilter" cssClass="form-horizontal" role="form">
    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right" for="name-filter">科室名称</label>
        <div class="col-sm-4">
            <input type="text" name="roomName" id="name-filter" placeholder="请输入科室名称" class="form-control"
                   value="${SysDeptRoomFilter.roomName}">
        </div>
        <label class="col-sm-1 control-label no-padding-right" for="deptId">所属部门</label>
        <div class="col-sm-4">
            <%--<form:select path="deptId" items="${depts}" itemValue="deptId" itemLabel="deptName"
                         cssClass="form-control"></form:select>--%>
            <%--选择部门--%>
            <select id="deptId" name="deptId" class="form-control">
                <option value="">选择部门</option>
                <c:forEach items="${depts}" var="dept">
                <option value="${dept.deptId }">${dept.deptName}</option>
                </c:forEach>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label no-padding-right" for="state">状态</label>
        <div class="col-sm-4">
            <form:select path="state" items="${redis:getDictList('DeptState',false)}" itemLabel="name" itemValue="basId"
                         cssClass="form-control required"></form:select>
        </div>
    </div>
</form:form>
